#include "MQ.h"

rt_mq_t mqLed_handle;
TVlot Queuemsg;


// 初始化消息队列
int mq_init(void)
{
    // 创建消息队列：名称、消息大小、队列容量、标志（通常为RT_IPC_FLAG_FIFO）
    mqLed_handle = rt_mq_create("Power_LED", sizeof(Queuemsg), 10, RT_IPC_FLAG_FIFO);
    if (mqLed_handle == RT_NULL) {
        rt_kprintf("Message queue create failed.\n");
        return -1;
    }
    return 0;
}